﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Core.Repository.Auth;
using WaterRevenueMS.Componnent.Entities.Authen;
using WaterRevenueMS.Core.Repository.Auth.Impl;
using System.ComponentModel.Composition;

namespace WaterRevenueMS.Core.Service.Authen.Impl
{
    [Export(typeof(IUserRoleService))]
    public class UserRoleService:IUserRoleService
    {
        #region 属性
        [Import]
        public IUserRoleRepository UserRoleRepository { get; set; }

        //public UserRoleService()
        //{
        //    UserRoleRepository = new UserRoleRepository();
        //}
        public IQueryable<UserRole> UserRoles
        {
            get { return UserRoleRepository.Entities; }
        }

        #endregion
    }
}
